package com.bfs.anasit.repository;

import com.bfs.anasit.model.Patient;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * Created by IntelliJ IDEA.
 * User: lukman
 * Date: 6/11/11
 * Time: 7:51 PM
 * Implement other DAO functionalities that are not in JPArepository
 * using possible Default Named Query.
 */

public interface PatientRepository extends JpaRepository<Patient, Long> {

	/**
	 * Get Patient with the associated patientId.
	 * @param patientId - Patient ID
	 * @return Patient object if provided patientId is
	 * found in the data repository, otherwise return null
	 */
	Patient findByPatientId(Long patientId);
}
